#include <iostream>
#include <math.h>

#define PI 3.14159265

using namespace std;

double cot_d(double angle){
  double t = tan(angle*PI/180);
  cout << "tan : " << t << endl;
  if(t!=0)
    return 1/t;
  else
    return 0;
}

double acot_d(double val){
  double at = atan(val);
  cout << "atan : " << at << endl;
  double acot = atan(1/val);
    
  return acot*180/PI;
}

int main(){
  while(1){
    double degree;
    cout << "Enter degree :";
    cin >> degree;

    cout << "cot : " << cot_d(degree) << endl;
    double result = cot_d(degree);
    cout << "acot : " << acot_d(result) << endl;
  }
  return 0;
}
